import request from '@/utils/request'
import { ResultVoid, DeepRequired } from '../../interface'

/**
 * 绑定邮箱验证码
 * /email/captcha/bindingEmail/{email}
 */
export function getEmailCaptchaBindingEmailByEmail(
  params: GetEmailCaptchaBindingEmailByEmailParams,
) {
  return request.get<DeepRequired<ResultVoid>>(
    `/email/captcha/bindingEmail/${params.email}`,
  )
}

interface GetEmailCaptchaBindingEmailByEmailParams {
  email: string
}
